import Vue from 'vue'

import Cookies from 'js-cookie'
import 'normalize.css/normalize.css'

import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'

import './styles/index.scss'
import './styles/element-variables.scss'

import '@/styles/index.scss' // global css
import App from './App'
import router from './router'
import store from './store'

import './icons'
import './permission'
import './utils/error-log' // error log
import VueDND from 'zero-dnd' // 页面拖拽
import './directive/directives.js'
// import VueDND from 'awe-dnd'

Vue.use(VueDND)

Vue.use(Element, {
  size: Cookies.get('size') || 'medium' // set element-ui default size
})

Vue.use(MintUI)

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})

